package com.awei.study.design.found.singleton;

/**
 * 饿汉式2
 */
public class SingletonE2 {

    private SingletonE2() {}

    private static SingletonE2 instance ;

    static {
        instance = new SingletonE2();
    }

    public SingletonE2 getInstance() {
        return SingletonE2.instance;
    }
}
